{include file='admin/header.html'}

<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">评论作者</label>
        <div class="layui-input-inline">
            <input type="text" name="author" value="{$row.author}" required lay-verify="required" placeholder="请输入评论作者"
                autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">评论内容</label>
        <div class="layui-input-block">
            <textarea name="comment" placeholder="" required lay-verify="required"
                class="layui-textarea editor">{$row.comment}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-inline">
            <input type="number" name="sort" value="{$row.sort}" required lay-verify="required|number"
                placeholder="请输入排序" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
            <select name="status" lay-verify="required">
                <option value=""></option>
                <option value="0" {if $row.status==0} selected{/if}>正常</option>
                <option value="1" {if $row.status==1} selected{/if}>待审</option>
                <option value="2" {if $row.status==2} selected{/if}>垃圾评论</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" name="id" value="{$row.id}">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">保存</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>

{include file='admin/inc/form.html'}

{include file='admin/footer.html'}